using System;
using System.Data.Services.Common;
using System.Runtime.Serialization;

namespace MetaObjects.Core.Tests
{
	[DataContract]
	[DataServiceKey("Id")]
	public class TestEntity
	{
		[DataMember]
		[DataColumn("Id")]
		public int Id { get; set; }

		[DataMember]
		[DataColumn("Title")]
		public string Title { get; set; }

		[DataMember]
		[DataColumn("Address")]
		public TestValueObject Address { get; set; }

		[DataMember]
		[DataColumn("Description")]
		public string Description { get;  set; }

		[DataMember]
		[DataColumn("Created")]
		public DateTime? Created { get; set; }

		[DataMember]
		[DataColumn("Modified")]
		public DateTime? Modified { get; set; }
	}
}